<template>
	<div>
		<button @click="getStudentInfo">点我获取学生信息</button>
		<button @click="getCarInfo">点我获取汽车信息</button>
	</div>
</template>

<script>
	import axios from 'axios'
	export default {
		name:'App',
		methods: {
			async getStudentInfo(){
				const result = await axios.get('/peiqi/students')
				console.log(result.data)
			},
			async	getCarInfo(){
				const result = await axios.get('/qiaozhi/cars')
				console.log(result.data)
			}
		},
	}
</script>
